﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="SupportOnline.ascx.cs"
    Inherits="SupportOnline" %>
<asp:GridView ID="grvSupportInfo" runat="server" AutoGenerateColumns="False" Font-Size="Small"
    CssClass="adminlist">
    <Columns>
        <asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Width="20px" HeaderStyle-Width="20px"
            HeaderText="Xóa">
            <HeaderTemplate>
                <input id="chkAll" onclick="javascript:SelectAllCheckboxes(this);" type="checkbox" />
            </HeaderTemplate>
            <ItemTemplate>
                <input id="chkSelect" value='<% # "?tabid=1&mod=" + WebComponents.ConvertType.Encode(this.AddModule) + "&id=" + Eval("Id") %>' title='<%# Eval("Id") %>'
                    runat="server" type="checkbox" />
            </ItemTemplate>
            <ItemStyle VerticalAlign="Middle" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="ID" SortExpression="Id">
            <ItemTemplate>
                <asp:Label ID="lblArticleID" runat="server" Text='<%# Eval("Id") %>'></asp:Label>
            </ItemTemplate>
            <HeaderStyle Width="40px" />
            <ItemStyle HorizontalAlign="Center" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Ti&#234;u đề" SortExpression="Description">
            <ItemTemplate>
                <a href="?tabid=1&mod=<%=WebComponents.ConvertType.Encode(this.AddModule) %>&id=<%# Eval("Id")  %>">
                    <asp:Label ID="lblTitle" runat="server" Text='<%# Eval("Description") %>'></asp:Label>
                </a>
            </ItemTemplate>
            <HeaderStyle Width="250px" HorizontalAlign="left" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Nick name">
            <ItemTemplate>
                <asp:Label ID="lblYM" runat="server" Text='<%# Eval("YM") %>'></asp:Label>
            </ItemTemplate>
            <HeaderStyle HorizontalAlign="left" />
        </asp:TemplateField>
         <asp:TemplateField HeaderText="Nick Type" SortExpression="NickType">
            <ItemTemplate>               
                    <asp:Label ID="lblNickType" runat="server" Text='<%# Eval("NickType") %>'></asp:Label>               
            </ItemTemplate>
            <HeaderStyle Width="250px" HorizontalAlign="left" />
        </asp:TemplateField>
       <%-- <asp:TemplateField HeaderText="Tiêu đề tiếng anh">
            <ItemTemplate>
                <a href="?tabid=1&cid=25&id=<%# Eval("Id")  %>">
                    <asp:Label ID="lblDescrip" runat="server" Text='<%# Eval("DescriptionEn") %>'></asp:Label></a>
            </ItemTemplate>
            <HeaderStyle HorizontalAlign="left" />
        </asp:TemplateField>--%>
        
        <asp:TemplateField HeaderText="Vị trí" SortExpression="OrderId">
            <ItemTemplate>
                <asp:Label ID="lblOrderId" runat="server" Text='<%# Eval("OrderId") %>'></asp:Label>
            </ItemTemplate>
            <HeaderStyle Width="50px" />
            <ItemStyle HorizontalAlign="Center" />
        </asp:TemplateField>
    </Columns>
    <EmptyDataTemplate>
        <div align="center" id="EmptyData">
            Không có thông tin...</div>
    </EmptyDataTemplate>
    <RowStyle CssClass="row0" />
    <AlternatingRowStyle CssClass="row1" />
</asp:GridView>
